package com.example.exceldemo.controller;

import com.example.exceldemo.entity.UserExcel;
import com.example.exceldemo.mapper.UserMapper;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @Author: yanhongwei
 * @Date: 2023/07/13 14:42:00
 * @Description: TODO
 */
@RestController
@RequestMapping("/user")
@Api(tags="用户管理")
public class UserController {

    @Autowired
    UserMapper userMapper;

    @ApiOperation("获取用户信息")
    @GetMapping(value="/getUserList")
    public List<UserExcel> getUserList(){
        return userMapper.selectList(null);
    }

}
